<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="jstl" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String realPath = this.getServletContext().getContextPath();
%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>${info.title }-${global.titleSuffix }</title>
<jsp:include page='<%="/header"%>' />
</head>
<link href="../resources/css/web/article/info.css" type="text/css"
	rel="stylesheet" />
<body>
	<div id="container">
		<%--
        	作者：1249146043@qq.com
        	时间：2015-02-12
        	描述：标题
        --%>
		<article class="article radius" id="title">${info.title }</article>
		<%--
            	作者：1249146043@qq.com
            	时间：2015-02-12
            	描述：内容
            --%>
		<article class="article radius" id="content">${info.articleContent.content }</article>

		<%--
            	作者：1249146043@qq.com
            	时间：2015-02-14
            	描述：评论区域
            --%>
		<article class="article radius">
			<a target="_blank" class="button" id="login_btn" href=""></a>
			<form method="post">
				<input name="user.nickName" class="commend" type="text"
					name="nickName" placeholder="这里输入昵称" required /> <input
					name="user.email" class="commend" type="email" name="email"
					placeholder="这里输入邮箱" required />
				<textarea name="content" rows="7" id="commend_content"
					class="commend" placeholder="在此输入评论内容..." required></textarea>
				<input type="submit" class="button" id="submit_btn" value="发表" />
			</form>
			<%--
            	作者：1249146043@qq.com
            	时间：2015-02-14
            	描述：评论显示
            	--%>
			<button class="button" id="comment_count">${info.commentCount }条评论</button>
			<ul id="comment_body" class="list">
				<jstl:forEach items="${info.comments }" var="comment">
					<li>${comment.content }</li>
				</jstl:forEach>
			</ul>
		</article>
		<%--
            --%>
	</div>
	<jsp:include page='<%="/footer"%>' />
</body>
</html>